package com.example.demo.entity.bean.dataSource1;

import com.example.demo.entity.dataSource1.MemberEntity;
import org.springframework.beans.BeanUtils;

/**
 * Created by Wen Gao on 2018/7/17.
 */
public class MemberBean extends MemberEntity {

    public static MemberBean adapt(MemberEntity memberEntity) {
        if (memberEntity == null) {
            return null;
        }
        MemberBean memberBean = new MemberBean();
        BeanUtils.copyProperties(memberEntity, memberBean);
        return memberBean;
    }

    public MemberEntity toEntity() {
        return this;
    }

}
